package Class;

import experience3.*;

public class Test {

 public static void main(String[] args) {
  Student stu0 = new Student(1001,"小一","boy","大数据","钢琴");
  Student stu1 = new Student(1002,"小二","girl");
  System.out.println("学生选课系统信息Student：");
  System.out.println(stu0);
  System.out.println(stu1);
  Teacher tea0 = new Teacher(1111,"张老师", "woman");
  System.out.println("老师授课信息Teacher:");
  System.out.println(tea0);
  Course cour0 = new Course(001,"高数");
  Course cour1 = new Course(002,"线代","教102",tea0);
  Course cour2 = new Course(003,"概率论");
  stu0.addCourse(cour0);
  stu0.addCourse(cour2);
  stu1.addCourse(cour2);
  stu1.addCourse(cour0);
  stu1.removeCourse(cour2);
  stu0.displayCourse();
  cour0.removeStudent(stu1);
  cour1.displayStudent();
 }
 
}